package com.lincoln.jenkins.test.actions;

import com.lincoln.jenkins.test.replys.Reply;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/// <param name="wxid">接收者</param>
/// <param name="msg_content">消息内容，支持XML格式，不要问我有哪些，我也没测试那么多，请自行收集。另外@成员时，内容开头加入@成员昵称，才能看到@效果。</param>
/// <param name="at_user_list">如果是群消息，这里可以填写@对象wxid</param>
/// <param name="msg_type">消息类型，我只测试了1的情况。默认填写1即可</param>
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SendMessage implements Reply {
    private String wxid;
    private String msgContent;
    private String atUserList;
    private int msgType;

    @Override
    public String genUrl() {
        return "<&&>SendMessage" + Reply.genParam(wxid) + Reply.genParam(msgContent) + Reply.genParam(atUserList) + Reply.genParam(String.valueOf(msgType));
    }
}
